package com.freedom.common.core.enums;

import com.freedom.common.core.base.IBaseEnum;
import lombok.Getter;

public enum ClientTypeEnum implements IBaseEnum<Integer> {

    APP(1, "APP"),
    XCX(2, "XCX"),
    PC(3, "PC");

    @Getter
    //  Mybatis-Plus 提供注解表示插入数据库时插入该值
    // @EnumValue
    private Integer value;

    @Getter
    //  表示对枚举序列化时返回此字段
    // @JsonValue
    private String label;

    ClientTypeEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }
}
